//
//  NetworkHelper.h
//  LoveSport
//
//  Created by Liang Zhang on 14/11/28.
//  Copyright (c) 2014年 bangtianxia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworkReachabilityManager.h"

static NSString * const apiNameUsers = @"users";

#define ENTITY_NAMES @{@(ApiEnumGet_Users):@"USERS"}

//Api Name
typedef enum : NSUInteger {
    ApiEnumNone,
    ApiEnumGet_Users,
//    ApiEnumPOST_xxxxxx,
    
} ApiEnum;

@interface NetworkHelper : NSObject

+ (ApiEnum)apiEnumWithFunction:(NSString *)function;
+ (BOOL)isNetWorkReachable;
+ (NSString *)makeMessageOfApiException:(NSInteger)code API:(NSString *)api;
+ (void)startMonitorNetworkConnection;
+ (void)stopMonitorNetworkConnection;

@end
